package global

import (
	"gitee.com/zmhfly8/gm/pkg/logger"
	"github.com/ArtisanCloud/PowerWeChat/v3/src/miniProgram"
	"github.com/go-redis/redis"
	"github.com/wechatpay-apiv3/wechatpay-go/core"
	"github.com/wechatpay-apiv3/wechatpay-go/core/notify"
	"time"
)

var (
	Logger         *logger.Logger
	Redis          *redis.Client
	JWT            *JWTSetting
	MiniProgramApp *miniProgram.MiniProgram
	WxPayClient    *core.Client
	WxPayHandler   *notify.Handler
	// WxPartnerPayClient 服务商支付配置
	WxPartnerPayClient  *core.Client
	WxPartnerPayHandler *notify.Handler
	AppSetting          *AppSettings
)

type JWTSetting struct {
	Secret string
	Issuer string
	Expire time.Duration
}
type AppSettings struct {
	DefaultPageSize int
	MaxPageSize     int
	LogSavePath     string
	LogFileName     string
	LogFileExt      string
	AppName         string
}
